#include "interface.h"
#include "SharedImpl.h"
#include <stdlib.h>

namespace shared
{
	SharedObject*  __stdcall createObject()
	{
		SharedObject* obj = new SharedImpl();
		return  obj;
	}

	void __stdcall releaseObject(SharedObject* obj)
	{
		SharedImpl* shared = dynamic_cast<SharedImpl*>(obj);
		if(shared)
		{
			delete shared;
			shared = NULL;
		}
	}
}